var data ={};
import http from "./http";
import network from "./network";
data.goto=(that,url,data={})=>{
    that.$router.push({path:url,query:data})
}

network.forEach(val=>{
  data[val] = (param) => {
    console.log(param)
    param.url = val;
    http.post_data(param)
  }
})
export default data;
